package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.util.Objects;

@Data
public class StudentPageVo {

    /**
     * 学生id
     */
    private Integer studentId;

    /**
     * 学生姓名
     */
    private String studentName;

    /**
     * 学生登录账号
     */
    private String studentAccount;

    /**
     * 学生学号
     */
    private String studentXueHao;

    /**
     * 学生密码
     */
    private String studentPassword;

    private static final long serialVersionUID = 1L;


    /**
     * 页面大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer page;

    @Override
    public String toString() {
        return "StudentPageVo{" +
                "studentId=" + studentId +
                ", studentName='" + studentName + '\'' +
                ", studentAccount='" + studentAccount + '\'' +
                ", studentXueHao='" + studentXueHao + '\'' +
                ", studentPassword='" + studentPassword + '\'' +
                ", pageSize=" + pageSize +
                ", page=" + page +
                '}';
    }

    @Override
    public boolean equals(Object o) {

        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StudentPageVo that = (StudentPageVo) o;
        return Objects.equals(studentId, that.studentId) && Objects.equals(studentName, that.studentName) && Objects.equals(studentAccount, that.studentAccount) && Objects.equals(studentXueHao, that.studentXueHao) && Objects.equals(studentPassword, that.studentPassword) && Objects.equals(pageSize, that.pageSize) && Objects.equals(page, that.page);
    }

    @Override
    public int hashCode() {
        return Objects.hash(studentId, studentName, studentAccount, studentXueHao, studentPassword, pageSize, page);
    }
}
